//导入封装好的service对象( 设置有拦截器 )
import service from '../utlis/request'

//爆爆团接口
export function tuan_list(payload = {}) {
    return service.get('/api/tuan/list', { params: payload });
}

//列表list的接口
import axios from 'axios'
export function a(canshu = {}) {
    return axios.get('/api/shop/list', { params: canshu })
}
//登录接口
export function user_login(payload = {}) {
    return service.post('/api/user/login', payload);
}
//注册接口
export function user_register(payload = {}) {
    return service.post('/api/user/register', payload);
}

//店铺详情接口
// export function shop_shopinfo(payload = {}) {
//     return service.get('/api/shop/shopinfo', payload);
// }
//方式二店铺详情接口
export function shop_shopinfo(payload = {}) {
    return service.get('/api/shop/shopinfo', { params: payload });
}

//新增地址接口
export function address_add(payload = {}) {
    return service.post('/api/address/add', payload);
}
